﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebMVC.Models.TaxiDetailsViewModel>" %>


<asp:Content ID="Content3" ContentPlaceHolderID="Head" runat="server">
<meta name="description" content="<%=ViewResources.SharedStrings.DetailsPageMetaDescription %>" />
 <meta name="keywords" content="<%=ViewResources.SharedStrings.DetailsPageMetaKeywords %>" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%=String.Format(ViewResources.SharedStrings.DetailsPageTitle, Model.Name) %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="page-content">
        <div id="main-part">
            
            <div>
                <div id="details-image-part">
                    <h1 ><%: Model.Name %></h1>
                    <div class="big-logo">
                        <img src="<%=Model.LogoPath %>" alt="<%=Model.Name %> logo" title="<%=Model.Name %>"/>
                    </div>
                    <div class="park-list">
                        <h3><%=ViewResources.TaxiStrings.TaxiParkHead %></h3>
                        <%foreach (var trans in Model.Transports)
                          { %>
                          <img alt="<%=trans.Name %>" src="<%=trans.ImgPath %>" />
                        <%} %>
                    </div>
                    <div class="rating-details">
                        <h3><%=ViewResources.TaxiStrings.AvgRatingHead %></h3>
                        <p><label><%=ViewResources.TaxiStrings.RateCarLabel %></label>
                        <%=Html.DisplayFor(m => m.AvgCarRating)%></p>
                        
                        <p><label ><%=ViewResources.TaxiStrings.RateServiceLabel %></label>
                        <%=Html.DisplayFor(m => m.AvgServiceRating)%></p>
                        <p><label ><%=ViewResources.TaxiStrings.RateDriverLabel %></label>
                        <%=Html.DisplayFor(m => m.AvgDriverRating)%></p>
                        <p><label ><%=ViewResources.TaxiStrings.RatePriceLabel %></label>
                        <%=Html.DisplayFor(m => m.AvgPriceRating)%></p>
                    </div>
                </div>
                <div id="details-text-part">
                    <div class="detail-block">
                        <h3><%=ViewResources.TaxiStrings.PricePolicyHead %></h3>
                            <label><%=ViewResources.TaxiStrings.PricePerKM %>: <%: Model.PricePerKM%></label>
                            <label><%=ViewResources.TaxiStrings.MinPrice %>: <%: Model.MinPrice %></label>
                            <%if (Model.MinPriceKM.HasValue){ %><label><%=String.Format(ViewResources.TaxiStrings.UpToKMPrice, Model.MinPriceKM)%>: <%: Model.MinPrice%></label><% }%>
                            <%if (Model.FreeWaitMinutes.HasValue){ %><label><%=String.Format(ViewResources.TaxiStrings.FreeWaitMinutes, Model.FreeWaitMinutes)%></label><% }%>
                            <%if (Model.WaitMinutePrice.HasValue){ %><label><%=ViewResources.TaxiStrings.MinuteWaitPrice%>: <%: Model.WaitMinutePrice%></label><% }%>
                            
                    </div>
                    <div class="detail-block">
                        <h3><%=ViewResources.TaxiStrings.PhoneNumbersHead %></h3>
                        <label><%: Model.PhoneNumber %></label>
                        <%if (!String.IsNullOrEmpty(Model.PhoneNumber1)){ %><label><%: Model.PhoneNumber1%></label> <%} %>
                        <%if (!String.IsNullOrEmpty(Model.PhoneNumber2)){ %><label><%: Model.PhoneNumber2 %></label><%} %>
                        <%if (!String.IsNullOrEmpty(Model.PhoneNumber3)){ %><label><%: Model.PhoneNumber3 %></label><%} %>
                        <%if (!String.IsNullOrEmpty(Model.PhoneNumber4)){ %><label><%: Model.PhoneNumber4 %></label><%} %>
                    </div>
                    <div class="detail-block details-block-big">
                        <h3><%=ViewResources.TaxiStrings.InfoHead %></h3>
                        <label><%=ViewResources.TaxiStrings.District %>: <%: (Model.DistrictName != null ? Model.DistrictName : ViewResources.TaxiStrings.AllDistrictsLabel) %></label>
                        <label><%=ViewResources.TaxiStrings.ParkSize %>: <%: Model.ParkQuantity %> <%=ViewResources.TaxiStrings.CarsSuffix %></label>
                        
                        <%if (Model.ServingFromYear.HasValue){ %><label><%=ViewResources.TaxiStrings.SinceYear %>: <%: Model.ServingFromYear%></label><%} %>
                        <label><%=ViewResources.TaxiStrings.AddedOn %>: <%: String.Format("{0:g}", Model.CreateDate) %></label>
                        <div style="clear:both"> 
                            <%if (Model.Conditioning){%> <img src="/Content/icons/cold-icon.png" alt="<%=ViewResources.TaxiStrings.ConditioningTooltip %>" title="<%=ViewResources.TaxiStrings.ConditioningTooltip %>" /><%} %>
                        <%if (Model.HasMeter){%> <img src="/Content/icons/icon-meter.png" alt="<%=ViewResources.TaxiStrings.MeterTooltip %>" title="<%=ViewResources.TaxiStrings.MeterTooltip %>"/><%} %>
                        <%if (Model.NoSmoking){%> <img src="/Content/icons/nosmoking-icon.png" alt="<%=ViewResources.TaxiStrings.NoSmokingTooltip %>" title="<%=ViewResources.TaxiStrings.NoSmokingTooltip %>"/><%} %>
                        </div>
                        
                        <%if (!String.IsNullOrEmpty(Model.Description)){ %><p style="clear:both"><%=Model.Description %></p><%} %>
                    </div>
                    <p class="small-desc"><strong>*</strong> <%=ViewResources.SharedStrings.CurrencyDisclaimer %></p>
                    <p class="small-desc"><strong>*</strong> <%=ViewResources.SharedStrings.PhoneNumberDisclaimer %></p>
                    
                </div>
            </div>
                <%Html.RenderAction("Reviews", "Taxi", new { id = Model.Id }); %>
                <%Html.RenderPartial("AddReviewUserControl", Model.AddReviewModel); %>               
            
            
        </div>
        <div id="side-bar">
            <% Html.RenderPartial("SideBar"); %>
        </div>        
</div>


</asp:Content>



